home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / guile-ii.src / guile-ii / guile-src / goonix / configure < prev    next >
Encoding:
Text File  |  1995-07-02  |  38.0 KB  |  1,401 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.3 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36.  
  37. # Initialize some other variables.
  38. subdirs=
  39.  
  40. ac_prev=
  41. for ac_option
  42. do
  43.  
  44.   # If the previous option needs an argument, assign it.
  45.   if test -n "$ac_prev"; then
  46.     eval "$ac_prev=\$ac_option"
  47.     ac_prev=
  48.     continue
  49.   fi
  50.  
  51.   case "$ac_option" in
  52.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  53.   *) ac_optarg= ;;
  54.   esac
  55.  
  56.   # Accept the important Cygnus configure options, so we can diagnose typos.
  57.  
  58.   case "$ac_option" in
  59.  
  60.   -build | --build | --buil | --bui | --bu | --b)
  61.     ac_prev=build ;;
  62.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  63.     build="$ac_optarg" ;;
  64.  
  65.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  66.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  67.     ac_prev=cache_file ;;
  68.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  69.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  70.     cache_file="$ac_optarg" ;;
  71.  
  72.   -disable-* | --disable-*)
  73.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  74.     # Reject names that are not valid shell variable names.
  75.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  76.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  77.     fi
  78.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  79.     eval "enable_${ac_feature}=no" ;;
  80.  
  81.   -enable-* | --enable-*)
  82.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  83.     # Reject names that are not valid shell variable names.
  84.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  85.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  86.     fi
  87.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  88.     case "$ac_option" in
  89.       *=*) ;;
  90.       *) ac_optarg=yes ;;
  91.     esac
  92.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  93.  
  94.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  95.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  96.   | --exec | --exe | --ex)
  97.     ac_prev=exec_prefix ;;
  98.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  99.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  100.   | --exec=* | --exe=* | --ex=*)
  101.     exec_prefix="$ac_optarg" ;;
  102.  
  103.   -gas | --gas | --ga | --g)
  104.     # Obsolete; use --with-gas.
  105.     with_gas=yes ;;
  106.  
  107.   -help | --help | --hel | --he)
  108.     # Omit some internal or obsolete options to make the list less imposing.
  109.     # This message is too long to be a string in the A/UX 3.1 sh.
  110.     cat << EOF
  111. Usage: configure [options] [host]
  112. Options: [defaults in brackets after descriptions]
  113. Configuration:
  114.   --cache-file=FILE       cache test results in FILE
  115.   --help                  print this message
  116.   --no-create             do not create output files
  117.   --quiet, --silent       do not print \`checking...' messages
  118.   --version               print the version of autoconf that created configure
  119. Directory and file names:
  120.   --prefix=PREFIX         install architecture-independent files in PREFIX
  121.                           [$ac_default_prefix]
  122.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  123.                           [same as prefix]
  124.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  125.   --program-prefix=PREFIX prepend PREFIX to installed program names
  126.   --program-suffix=SUFFIX append SUFFIX to installed program names
  127.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  128. Host type:
  129.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  130.   --host=HOST             configure for HOST [guessed]
  131.   --target=TARGET         configure for TARGET [TARGET=HOST]
  132. Features and packages:
  133.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  134.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  135.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  136.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  137.   --x-includes=DIR        X include files are in DIR
  138.   --x-libraries=DIR       X library files are in DIR
  139. --enable and --with options recognized:$ac_help
  140. EOF
  141.     exit 0 ;;
  142.  
  143.   -host | --host | --hos | --ho)
  144.     ac_prev=host ;;
  145.   -host=* | --host=* | --hos=* | --ho=*)
  146.     host="$ac_optarg" ;;
  147.  
  148.   -nfp | --nfp | --nf)
  149.     # Obsolete; use --without-fp.
  150.     with_fp=no ;;
  151.  
  152.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  153.   | --no-cr | --no-c)
  154.     no_create=yes ;;
  155.  
  156.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  157.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  158.     no_recursion=yes ;;
  159.  
  160.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  161.     ac_prev=prefix ;;
  162.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  163.     prefix="$ac_optarg" ;;
  164.  
  165.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  166.   | --program-pre | --program-pr | --program-p)
  167.     ac_prev=program_prefix ;;
  168.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  169.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  170.     program_prefix="$ac_optarg" ;;
  171.  
  172.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  173.   | --program-suf | --program-su | --program-s)
  174.     ac_prev=program_suffix ;;
  175.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  176.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  177.     program_suffix="$ac_optarg" ;;
  178.  
  179.   -program-transform-name | --program-transform-name \
  180.   | --program-transform-nam | --program-transform-na \
  181.   | --program-transform-n | --program-transform- \
  182.   | --program-transform | --program-transfor \
  183.   | --program-transfo | --program-transf \
  184.   | --program-trans | --program-tran \
  185.   | --progr-tra | --program-tr | --program-t)
  186.     ac_prev=program_transform_name ;;
  187.   -program-transform-name=* | --program-transform-name=* \
  188.   | --program-transform-nam=* | --program-transform-na=* \
  189.   | --program-transform-n=* | --program-transform-=* \
  190.   | --program-transform=* | --program-transfor=* \
  191.   | --program-transfo=* | --program-transf=* \
  192.   | --program-trans=* | --program-tran=* \
  193.   | --progr-tra=* | --program-tr=* | --program-t=*)
  194.     program_transform_name="$ac_optarg" ;;
  195.  
  196.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  197.   | -silent | --silent | --silen | --sile | --sil)
  198.     silent=yes ;;
  199.  
  200.   -site | --site | --sit)
  201.     ac_prev=site ;;
  202.   -site=* | --site=* | --sit=*)
  203.     site="$ac_optarg" ;;
  204.  
  205.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  206.     ac_prev=srcdir ;;
  207.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  208.     srcdir="$ac_optarg" ;;
  209.  
  210.   -target | --target | --targe | --targ | --tar | --ta | --t)
  211.     ac_prev=target ;;
  212.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  213.     target="$ac_optarg" ;;
  214.  
  215.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  216.     verbose=yes ;;
  217.  
  218.   -version | --version | --versio | --versi | --vers)
  219.     echo "configure generated by autoconf version 2.3"
  220.     exit 0 ;;
  221.  
  222.   -with-* | --with-*)
  223.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  224.     # Reject names that are not valid shell variable names.
  225.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  226.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  227.     fi
  228.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  229.     case "$ac_option" in
  230.       *=*) ;;
  231.       *) ac_optarg=yes ;;
  232.     esac
  233.     eval "with_${ac_package}='$ac_optarg'" ;;
  234.  
  235.   -without-* | --without-*)
  236.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  237.     # Reject names that are not valid shell variable names.
  238.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  239.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  240.     fi
  241.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  242.     eval "with_${ac_package}=no" ;;
  243.  
  244.   --x)
  245.     # Obsolete; use --with-x.
  246.     with_x=yes ;;
  247.  
  248.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  249.   | --x-incl | --x-inc | --x-in | --x-i)
  250.     ac_prev=x_includes ;;
  251.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  252.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  253.     x_includes="$ac_optarg" ;;
  254.  
  255.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  256.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  257.     ac_prev=x_libraries ;;
  258.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  259.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  260.     x_libraries="$ac_optarg" ;;
  261.  
  262.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  263.     ;;
  264.  
  265.   *) 
  266.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  267.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  268.     fi
  269.     if test "x$nonopt" != xNONE; then
  270.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  271.     fi
  272.     nonopt="$ac_option"
  273.     ;;
  274.  
  275.   esac
  276. done
  277.  
  278. if test -n "$ac_prev"; then
  279.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  280. fi
  281.  
  282. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  283.  
  284. # File descriptor usage:
  285. # 0 standard input
  286. # 1 file creation
  287. # 2 errors and warnings
  288. # 3 some systems may open it to /dev/tty
  289. # 4 used on the Kubota Titan
  290. # 6 checking for... messages and results
  291. # 5 compiler messages saved in config.log
  292. if test "$silent" = yes; then
  293.   exec 6>/dev/null
  294. else
  295.   exec 6>&1
  296. fi
  297. exec 5>./config.log
  298.  
  299. echo "\
  300. This file contains any messages produced by compilers while
  301. running configure, to aid debugging if configure makes a mistake.
  302. " 1>&5
  303.  
  304. # Strip out --no-create and --no-recursion so they do not pile up.
  305. # Also quote any args containing shell metacharacters.
  306. ac_configure_args=
  307. for ac_arg
  308. do
  309.   case "$ac_arg" in
  310.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  311.   | --no-cr | --no-c) ;;
  312.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  313.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  314.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  315.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  316.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  317.   esac
  318. done
  319.  
  320. # NLS nuisances.
  321. # Only set LANG and LC_ALL to C if already set.
  322. # These must not be set unconditionally because not all systems understand
  323. # e.g. LANG=C (notably SCO).
  324. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  325. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  326.  
  327. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  328. rm -rf conftest* confdefs.h
  329. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  330. echo > confdefs.h
  331.  
  332. # A filename unique to this package, relative to the directory that
  333. # configure is in, which we can look for to find out if srcdir is correct.
  334. ac_unique_file=ioext.c
  335.  
  336. # Find the source files, if location was not specified.
  337. if test -z "$srcdir"; then
  338.   ac_srcdir_defaulted=yes
  339.   # Try the directory containing this script, then its parent.
  340.   ac_prog=$0
  341.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  342.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  343.   srcdir=$ac_confdir
  344.   if test ! -r $srcdir/$ac_unique_file; then
  345.     srcdir=..
  346.   fi
  347. else
  348.   ac_srcdir_defaulted=no
  349. fi
  350. if test ! -r $srcdir/$ac_unique_file; then
  351.   if test "$ac_srcdir_defaulted" = yes; then
  352.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  353.   else
  354.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  355.   fi
  356. fi
  357. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  358.  
  359. # Prefer explicitly selected file to automatically selected ones.
  360. if test -z "$CONFIG_SITE"; then
  361.   if test "x$prefix" != xNONE; then
  362.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  363.   else
  364.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  365.   fi
  366. fi
  367. for ac_site_file in $CONFIG_SITE; do
  368.   if test -r "$ac_site_file"; then
  369.     echo "loading site script $ac_site_file"
  370.     . "$ac_site_file"
  371.   fi
  372. done
  373.  
  374. if test -r "$cache_file"; then
  375.   echo "loading cache $cache_file"
  376.   . $cache_file
  377. else
  378.   echo "creating cache $cache_file"
  379.   > $cache_file
  380. fi
  381.  
  382. ac_ext=c
  383. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  384. ac_cpp='$CPP $CPPFLAGS'
  385. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  386. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  387.  
  388. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  389.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  390.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  391.     ac_n= ac_c='
  392. ' ac_t='    '
  393.   else
  394.     ac_n=-n ac_c= ac_t=
  395.   fi
  396. else
  397.   ac_n= ac_c='\c' ac_t=
  398. fi
  399.  
  400.  
  401.  
  402. # Extract the first word of "gcc", so it can be a program name with args.
  403. set dummy gcc; ac_word=$2
  404. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  405. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  406.   echo $ac_n "(cached) $ac_c" 1>&6
  407. else
  408.   if test -n "$CC"; then
  409.   ac_cv_prog_CC="$CC" # Let the user override the test.
  410. else
  411.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  412.   for ac_dir in $PATH; do
  413.     test -z "$ac_dir" && ac_dir=.
  414.     if test -f $ac_dir/$ac_word; then
  415.       ac_cv_prog_CC="gcc"
  416.       break
  417.     fi
  418.   done
  419.   IFS="$ac_save_ifs"
  420.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  421. fi
  422. fi
  423. CC="$ac_cv_prog_CC"
  424. if test -n "$CC"; then
  425.   echo "$ac_t""$CC" 1>&6
  426. else
  427.   echo "$ac_t""no" 1>&6
  428. fi
  429.  
  430.  
  431. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  432. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  433.   echo $ac_n "(cached) $ac_c" 1>&6
  434. else
  435.   cat > conftest.c <<EOF
  436. #ifdef __GNUC__
  437.   yes;
  438. #endif
  439. EOF
  440. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  441.   ac_cv_prog_gcc=yes
  442. else
  443.   ac_cv_prog_gcc=no
  444. fi
  445. fi
  446. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  447. if test $ac_cv_prog_gcc = yes; then
  448.   GCC=yes
  449.   if test "${CFLAGS+set}" != set; then
  450.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  451. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  452.   echo $ac_n "(cached) $ac_c" 1>&6
  453. else
  454.   echo 'void f(){}' > conftest.c
  455. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  456.   ac_cv_prog_gcc_g=yes
  457. else
  458.   ac_cv_prog_gcc_g=no
  459. fi
  460. rm -f conftest*
  461.  
  462. fi
  463.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  464.     if test $ac_cv_prog_gcc_g = yes; then
  465.       CFLAGS="-g -O"
  466.     else
  467.       CFLAGS="-O"
  468.     fi
  469.   fi
  470. else
  471.   GCC=
  472.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  473. fi
  474.  
  475. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  476. # On Suns, sometimes $CPP names a directory.
  477. if test -n "$CPP" && test -d "$CPP"; then
  478.   CPP=
  479. fi
  480. if test -z "$CPP"; then
  481. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  482.   echo $ac_n "(cached) $ac_c" 1>&6
  483. else
  484.     # This must be in double quotes, not single quotes, because CPP may get
  485.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  486.   CPP="${CC-cc} -E"
  487.   # On the NeXT, cc -E runs the code through the compiler's parser,
  488.   # not just through cpp.
  489.   cat > conftest.$ac_ext <<EOF
  490. #line 491 "configure"
  491. #include "confdefs.h"
  492. #include <assert.h>
  493. Syntax Error
  494. EOF
  495. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  496. ac_err=`grep -v '^ *+' conftest.out`
  497. if test -z "$ac_err"; then
  498.   :
  499. else
  500.   echo "$ac_err" >&5
  501.   rm -rf conftest*
  502.   CPP="${CC-cc} -E -traditional-cpp"
  503.   cat > conftest.$ac_ext <<EOF
  504. #line 505 "configure"
  505. #include "confdefs.h"
  506. #include <assert.h>
  507. Syntax Error
  508. EOF
  509. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  510. ac_err=`grep -v '^ *+' conftest.out`
  511. if test -z "$ac_err"; then
  512.   :
  513. else
  514.   echo "$ac_err" >&5
  515.   rm -rf conftest*
  516.   CPP=/lib/cpp
  517. fi
  518. rm -f conftest*
  519. fi
  520. rm -f conftest*
  521.   ac_cv_prog_CPP="$CPP"
  522. fi
  523. fi
  524. CPP="$ac_cv_prog_CPP"
  525. echo "$ac_t""$CPP" 1>&6
  526.  
  527. # Extract the first word of "ranlib", so it can be a program name with args.
  528. set dummy ranlib; ac_word=$2
  529. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  530. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  531.   echo $ac_n "(cached) $ac_c" 1>&6
  532. else
  533.   if test -n "$RANLIB"; then
  534.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  535. else
  536.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  537.   for ac_dir in $PATH; do
  538.     test -z "$ac_dir" && ac_dir=.
  539.     if test -f $ac_dir/$ac_word; then
  540.       ac_cv_prog_RANLIB="ranlib"
  541.       break
  542.     fi
  543.   done
  544.   IFS="$ac_save_ifs"
  545.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  546. fi
  547. fi
  548. RANLIB="$ac_cv_prog_RANLIB"
  549. if test -n "$RANLIB"; then
  550.   echo "$ac_t""$RANLIB" 1>&6
  551. else
  552.   echo "$ac_t""no" 1>&6
  553. fi
  554.  
  555. ac_aux_dir=
  556. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  557.   if test -f $ac_dir/install-sh; then
  558.     ac_aux_dir=$ac_dir
  559.     ac_install_sh="$ac_aux_dir/install-sh -c"
  560.     break
  561.   elif test -f $ac_dir/install.sh; then
  562.     ac_aux_dir=$ac_dir
  563.     ac_install_sh="$ac_aux_dir/install.sh -c"
  564.     break
  565.   fi
  566. done
  567. if test -z "$ac_aux_dir"; then
  568.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  569. fi
  570. ac_config_guess=$ac_aux_dir/config.guess
  571. ac_config_sub=$ac_aux_dir/config.sub
  572. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  573.  
  574. # Find a good install program.  We prefer a C program (faster),
  575. # so one script is as good as another.  But avoid the broken or
  576. # incompatible versions:
  577. # SysV /etc/install, /usr/sbin/install
  578. # SunOS /usr/etc/install
  579. # IRIX /sbin/install
  580. # AIX /bin/install
  581. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  582. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  583. # ./install, which can be erroneously created by make from ./install.sh.
  584. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  585. if test -z "$INSTALL"; then
  586. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  587.   echo $ac_n "(cached) $ac_c" 1>&6
  588. else
  589.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  590.   for ac_dir in $PATH; do
  591.     # Account for people who put trailing slashes in PATH elements.
  592.     case "$ac_dir/" in
  593.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  594.     *)
  595.       # OSF1 and SCO ODT 3.0 have their own names for install.
  596.       for ac_prog in ginstall installbsd scoinst install; do
  597.         if test -f $ac_dir/$ac_prog; then
  598.       if test $ac_prog = install &&
  599.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  600.         # AIX install.  It has an incompatible calling convention.
  601.         # OSF/1 installbsd also uses dspmsg, but is usable.
  602.         :
  603.       else
  604.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  605.         break 2
  606.       fi
  607.     fi
  608.       done
  609.       ;;
  610.     esac
  611.   done
  612.   IFS="$ac_save_ifs"
  613.   # As a last resort, use the slow shell script.
  614.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  615. fi
  616.   INSTALL="$ac_cv_path_install"
  617. fi
  618. echo "$ac_t""$INSTALL" 1>&6
  619.  
  620. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  621. # It thinks the first close brace ends the variable substitution.
  622. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  623.  
  624. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  625.  
  626.  
  627.  
  628. ac_header_dirent=no
  629. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  630. do
  631. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  632. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  633. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  634.   echo $ac_n "(cached) $ac_c" 1>&6
  635. else
  636.   cat > conftest.$ac_ext <<EOF
  637. #line 638 "configure"
  638. #include "confdefs.h"
  639. #include <sys/types.h>
  640. #include <$ac_hdr>
  641. int main() { return 0; }
  642. int t() {
  643. DIR *dirp = 0;
  644. ; return 0; }
  645. EOF
  646. if eval $ac_compile; then
  647.   rm -rf conftest*
  648.   eval "ac_cv_header_dirent_$ac_safe=yes"
  649. else
  650.   rm -rf conftest*
  651.   eval "ac_cv_header_dirent_$ac_safe=no"
  652. fi
  653. rm -f conftest*
  654.  
  655. fi
  656. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  657.   echo "$ac_t""yes" 1>&6
  658.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  659.   cat >> confdefs.h <<EOF
  660. #define $ac_tr_hdr 1
  661. EOF
  662.  ac_header_dirent=$ac_hdr; break
  663. else
  664.   echo "$ac_t""no" 1>&6
  665. fi
  666. done
  667. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  668. if test $ac_header_dirent = dirent.h; then
  669. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  670. if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then
  671.   echo $ac_n "(cached) $ac_c" 1>&6
  672. else
  673.   ac_save_LIBS="$LIBS"
  674. LIBS="-ldir  $LIBS"
  675. cat > conftest.$ac_ext <<EOF
  676. #line 677 "configure"
  677. #include "confdefs.h"
  678.  
  679. int main() { return 0; }
  680. int t() {
  681. opendir()
  682. ; return 0; }
  683. EOF
  684. if eval $ac_link; then
  685.   rm -rf conftest*
  686.   eval "ac_cv_lib_dir=yes"
  687. else
  688.   rm -rf conftest*
  689.   eval "ac_cv_lib_dir=no"
  690. fi
  691. rm -f conftest*
  692. LIBS="$ac_save_LIBS"
  693.  
  694. fi
  695. if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  696.   echo "$ac_t""yes" 1>&6
  697.   LIBS="$LIBS -ldir"
  698. else
  699.   echo "$ac_t""no" 1>&6
  700. fi
  701.  
  702. else
  703. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  704. if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then
  705.   echo $ac_n "(cached) $ac_c" 1>&6
  706. else
  707.   ac_save_LIBS="$LIBS"
  708. LIBS="-lx  $LIBS"
  709. cat > conftest.$ac_ext <<EOF
  710. #line 711 "configure"
  711. #include "confdefs.h"
  712.  
  713. int main() { return 0; }
  714. int t() {
  715. opendir()
  716. ; return 0; }
  717. EOF
  718. if eval $ac_link; then
  719.   rm -rf conftest*
  720.   eval "ac_cv_lib_x=yes"
  721. else
  722.   rm -rf conftest*
  723.   eval "ac_cv_lib_x=no"
  724. fi
  725. rm -f conftest*
  726. LIBS="$ac_save_LIBS"
  727.  
  728. fi
  729. if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  730.   echo "$ac_t""yes" 1>&6
  731.   LIBS="$LIBS -lx"
  732. else
  733.   echo "$ac_t""no" 1>&6
  734. fi
  735.  
  736. fi
  737.  
  738. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  739. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  740.   echo $ac_n "(cached) $ac_c" 1>&6
  741. else
  742.   cat > conftest.$ac_ext <<EOF
  743. #line 744 "configure"
  744. #include "confdefs.h"
  745. #include <sys/types.h>
  746. #include <sys/wait.h>
  747. #ifndef WEXITSTATUS
  748. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  749. #endif
  750. #ifndef WIFEXITED
  751. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  752. #endif
  753. int main() { return 0; }
  754. int t() {
  755. int s;
  756. wait (&s);
  757. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  758. ; return 0; }
  759. EOF
  760. if eval $ac_compile; then
  761.   rm -rf conftest*
  762.   ac_cv_header_sys_wait_h=yes
  763. else
  764.   rm -rf conftest*
  765.   ac_cv_header_sys_wait_h=no
  766. fi
  767. rm -f conftest*
  768.  
  769. fi
  770. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  771. if test $ac_cv_header_sys_wait_h = yes; then
  772.   cat >> confdefs.h <<\EOF
  773. #define HAVE_SYS_WAIT_H 1
  774. EOF
  775.  
  776. fi
  777.  
  778. for ac_hdr in sys/time.h unistd.h
  779. do
  780. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  781. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  782. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  783.   echo $ac_n "(cached) $ac_c" 1>&6
  784. else
  785.   cat > conftest.$ac_ext <<EOF
  786. #line 787 "configure"
  787. #include "confdefs.h"
  788. #include <$ac_hdr>
  789. EOF
  790. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  791. ac_err=`grep -v '^ *+' conftest.out`
  792. if test -z "$ac_err"; then
  793.   rm -rf conftest*
  794.   eval "ac_cv_header_$ac_safe=yes"
  795. else
  796.   echo "$ac_err" >&5
  797.   rm -rf conftest*
  798.   eval "ac_cv_header_$ac_safe=no"
  799. fi
  800. rm -f conftest*
  801. fi
  802. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  803.   echo "$ac_t""yes" 1>&6
  804.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  805.   cat >> confdefs.h <<EOF
  806. #define $ac_tr_hdr 1
  807. EOF
  808.  
  809. else
  810.   echo "$ac_t""no" 1>&6
  811. fi
  812. done
  813.  
  814.  
  815. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  816. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  817.   echo $ac_n "(cached) $ac_c" 1>&6
  818. else
  819.   cat > conftest.$ac_ext <<EOF
  820. #line 821 "configure"
  821. #include "confdefs.h"
  822. #include <sys/types.h>
  823. EOF
  824. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  825.   egrep "uid_t" >/dev/null 2>&1; then
  826.   rm -rf conftest*
  827.   ac_cv_type_uid_t=yes
  828. else
  829.   rm -rf conftest*
  830.   ac_cv_type_uid_t=no
  831. fi
  832. rm -f conftest*
  833.  
  834. fi
  835. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  836. if test $ac_cv_type_uid_t = no; then
  837.   cat >> confdefs.h <<\EOF
  838. #define uid_t int
  839. EOF
  840.  
  841.   cat >> confdefs.h <<\EOF
  842. #define gid_t int
  843. EOF
  844.  
  845. fi
  846.  
  847. # If we cannot run a trivial program, we must be cross compiling.
  848. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  849. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  850.   echo $ac_n "(cached) $ac_c" 1>&6
  851. else
  852.   if test "$cross_compiling" = yes; then
  853.   ac_cv_c_cross=yes
  854. else
  855. cat > conftest.$ac_ext <<EOF
  856. #line 857 "configure"
  857. #include "confdefs.h"
  858. main(){return(0);}
  859. EOF
  860. eval $ac_link
  861. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  862.   ac_cv_c_cross=no
  863. else
  864.   ac_cv_c_cross=yes
  865. fi
  866. fi
  867. rm -fr conftest*
  868. fi
  869. cross_compiling=$ac_cv_c_cross
  870. echo "$ac_t""$ac_cv_c_cross" 1>&6
  871.  
  872. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  873. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  874.   echo $ac_n "(cached) $ac_c" 1>&6
  875. else
  876.   cat > conftest.$ac_ext <<EOF
  877. #line 878 "configure"
  878. #include "confdefs.h"
  879. #include <stdlib.h>
  880. #include <stdarg.h>
  881. #include <string.h>
  882. #include <float.h>
  883. EOF
  884. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  885. ac_err=`grep -v '^ *+' conftest.out`
  886. if test -z "$ac_err"; then
  887.   rm -rf conftest*
  888.   ac_cv_header_stdc=yes
  889. else
  890.   echo "$ac_err" >&5
  891.   rm -rf conftest*
  892.   ac_cv_header_stdc=no
  893. fi
  894. rm -f conftest*
  895.  
  896. if test $ac_cv_header_stdc = yes; then
  897.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  898. cat > conftest.$ac_ext <<EOF
  899. #line 900 "configure"
  900. #include "confdefs.h"
  901. #include <string.h>
  902. EOF
  903. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  904.   egrep "memchr" >/dev/null 2>&1; then
  905.   :
  906. else
  907.   rm -rf conftest*
  908.   ac_cv_header_stdc=no
  909. fi
  910. rm -f conftest*
  911.  
  912. fi
  913.  
  914. if test $ac_cv_header_stdc = yes; then
  915.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  916. cat > conftest.$ac_ext <<EOF
  917. #line 918 "configure"
  918. #include "confdefs.h"
  919. #include <stdlib.h>
  920. EOF
  921. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  922.   egrep "free" >/dev/null 2>&1; then
  923.   :
  924. else
  925.   rm -rf conftest*
  926.   ac_cv_header_stdc=no
  927. fi
  928. rm -f conftest*
  929.  
  930. fi
  931.  
  932. if test $ac_cv_header_stdc = yes; then
  933.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  934. if test "$cross_compiling" = yes; then
  935.   ac_cv_header_stdc=no
  936. else
  937. cat > conftest.$ac_ext <<EOF
  938. #line 939 "configure"
  939. #include "confdefs.h"
  940. #include <ctype.h>
  941. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  942. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  943. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  944. int main () { int i; for (i = 0; i < 256; i++)
  945. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  946. exit (0); }
  947.  
  948. EOF
  949. eval $ac_link
  950. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  951.   :
  952. else
  953.   ac_cv_header_stdc=no
  954. fi
  955. fi
  956. rm -fr conftest*
  957. fi
  958. fi
  959. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  960. if test $ac_cv_header_stdc = yes; then
  961.   cat >> confdefs.h <<\EOF
  962. #define STDC_HEADERS 1
  963. EOF
  964.  
  965. fi
  966.  
  967. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  968. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  969.   echo $ac_n "(cached) $ac_c" 1>&6
  970. else
  971.   cat > conftest.$ac_ext <<EOF
  972. #line 973 "configure"
  973. #include "confdefs.h"
  974. #include <sys/types.h>
  975. #if STDC_HEADERS
  976. #include <stdlib.h>
  977. #endif
  978. EOF
  979. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  980.   egrep "mode_t" >/dev/null 2>&1; then
  981.   rm -rf conftest*
  982.   ac_cv_type_mode_t=yes
  983. else
  984.   rm -rf conftest*
  985.   ac_cv_type_mode_t=no
  986. fi
  987. rm -f conftest*
  988.  
  989. fi
  990. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  991. if test $ac_cv_type_mode_t = no; then
  992.   cat >> confdefs.h <<\EOF
  993. #define mode_t int
  994. EOF
  995.  
  996. fi
  997.  
  998. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  999. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1000.   echo $ac_n "(cached) $ac_c" 1>&6
  1001. else
  1002.   cat > conftest.$ac_ext <<EOF
  1003. #line 1004 "configure"
  1004. #include "confdefs.h"
  1005. #include <sys/types.h>
  1006. #if STDC_HEADERS
  1007. #include <stdlib.h>
  1008. #endif
  1009. EOF
  1010. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1011.   egrep "pid_t" >/dev/null 2>&1; then
  1012.   rm -rf conftest*
  1013.   ac_cv_type_pid_t=yes
  1014. else
  1015.   rm -rf conftest*
  1016.   ac_cv_type_pid_t=no
  1017. fi
  1018. rm -f conftest*
  1019.  
  1020. fi
  1021. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1022. if test $ac_cv_type_pid_t = no; then
  1023.   cat >> confdefs.h <<\EOF
  1024. #define pid_t int
  1025. EOF
  1026.  
  1027. fi
  1028.  
  1029. echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
  1030. if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
  1031.   echo $ac_n "(cached) $ac_c" 1>&6
  1032. else
  1033.   cat > conftest.$ac_ext <<EOF
  1034. #line 1035 "configure"
  1035. #include "confdefs.h"
  1036. #include <sys/types.h>
  1037. #include <sys/stat.h>
  1038. int main() { return 0; }
  1039. int t() {
  1040. struct stat s; s.st_rdev;
  1041. ; return 0; }
  1042. EOF
  1043. if eval $ac_compile; then
  1044.   rm -rf conftest*
  1045.   ac_cv_struct_st_rdev=yes
  1046. else
  1047.   rm -rf conftest*
  1048.   ac_cv_struct_st_rdev=no
  1049. fi
  1050. rm -f conftest*
  1051.  
  1052. fi
  1053. echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
  1054. if test $ac_cv_struct_st_rdev = yes; then
  1055.   cat >> confdefs.h <<\EOF
  1056. #define HAVE_ST_RDEV 1
  1057. EOF
  1058.  
  1059. fi
  1060.  
  1061. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1062. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1063.   echo $ac_n "(cached) $ac_c" 1>&6
  1064. else
  1065.   cat > conftest.$ac_ext <<EOF
  1066. #line 1067 "configure"
  1067. #include "confdefs.h"
  1068. #include <sys/types.h>
  1069. #include <sys/time.h>
  1070. #include <time.h>
  1071. int main() { return 0; }
  1072. int t() {
  1073. struct tm *tp;
  1074. ; return 0; }
  1075. EOF
  1076. if eval $ac_compile; then
  1077.   rm -rf conftest*
  1078.   ac_cv_header_time=yes
  1079. else
  1080.   rm -rf conftest*
  1081.   ac_cv_header_time=no
  1082. fi
  1083. rm -f conftest*
  1084.  
  1085. fi
  1086. echo "$ac_t""$ac_cv_header_time" 1>&6
  1087. if test $ac_cv_header_time = yes; then
  1088.   cat >> confdefs.h <<\EOF
  1089. #define TIME_WITH_SYS_TIME 1
  1090. EOF
  1091.  
  1092. fi
  1093.  
  1094.  
  1095. echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
  1096. if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
  1097.   echo $ac_n "(cached) $ac_c" 1>&6
  1098. else
  1099.   if test "$cross_compiling" = yes; then
  1100.   ac_cv_type_getgroups=cross
  1101. else
  1102. cat > conftest.$ac_ext <<EOF
  1103. #line 1104 "configure"
  1104. #include "confdefs.h"
  1105.  
  1106. /* Thanks to Mike Rendell for this test.  */
  1107. #include <sys/types.h>
  1108. #define NGID 256
  1109. #undef MAX
  1110. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  1111. main()
  1112. {
  1113.   gid_t gidset[NGID];
  1114.   int i, n;
  1115.   union { gid_t gval; long lval; }  val;
  1116.  
  1117.   val.lval = -1;
  1118.   for (i = 0; i < NGID; i++)
  1119.     gidset[i] = val.gval;
  1120.   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  1121.                  gidset);
  1122.   /* Exit non-zero if getgroups seems to require an array of ints.  This
  1123.      happens when gid_t is short but getgroups modifies an array of ints.  */
  1124.   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  1125. }
  1126.  
  1127. EOF
  1128. eval $ac_link
  1129. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1130.     ac_cv_type_getgroups=gid_t
  1131. else
  1132.   ac_cv_type_getgroups=int
  1133. fi
  1134. fi
  1135. rm -fr conftest*
  1136. if test $ac_cv_type_getgroups = cross; then
  1137.         cat > conftest.$ac_ext <<EOF
  1138. #line 1139 "configure"
  1139. #include "confdefs.h"
  1140. #include <unistd.h>
  1141. EOF
  1142. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1143.   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  1144.   rm -rf conftest*
  1145.   ac_cv_type_getgroups=gid_t
  1146. else
  1147.   rm -rf conftest*
  1148.   ac_cv_type_getgroups=int
  1149. fi
  1150. rm -f conftest*
  1151.  
  1152. fi
  1153. fi
  1154. echo "$ac_t""$ac_cv_type_getgroups" 1>&6
  1155. cat >> confdefs.h <<EOF
  1156. #define GETGROUPS_T $ac_cv_type_getgroups
  1157. EOF
  1158.  
  1159.  
  1160. for ac_func in getcwd mkdir putenv rmdir select uname
  1161. do
  1162. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1163. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1164.   echo $ac_n "(cached) $ac_c" 1>&6
  1165. else
  1166.   cat > conftest.$ac_ext <<EOF
  1167. #line 1168 "configure"
  1168. #include "confdefs.h"
  1169. /* System header to define __stub macros and hopefully few prototypes,
  1170.     which can conflict with char $ac_func(); below.  */
  1171. #include <assert.h>
  1172. /* Override any gcc2 internal prototype to avoid an error.  */
  1173. char $ac_func(); 
  1174.  
  1175. int main() { return 0; }
  1176. int t() {
  1177.  
  1178. /* The GNU C library defines this for functions which it implements
  1179.     to always fail with ENOSYS.  Some functions are actually named
  1180.     something starting with __ and the normal name is an alias.  */
  1181. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1182. choke me
  1183. #else
  1184. $ac_func();
  1185. #endif
  1186.  
  1187. ; return 0; }
  1188. EOF
  1189. if eval $ac_link; then
  1190.   rm -rf conftest*
  1191.   eval "ac_cv_func_$ac_func=yes"
  1192. else
  1193.   rm -rf conftest*
  1194.   eval "ac_cv_func_$ac_func=no"
  1195. fi
  1196. rm -f conftest*
  1197.  
  1198. fi
  1199. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1200.   echo "$ac_t""yes" 1>&6
  1201.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1202.   cat >> confdefs.h <<EOF
  1203. #define $ac_tr_func 1
  1204. EOF
  1205.  
  1206. else
  1207.   echo "$ac_t""no" 1>&6
  1208. fi
  1209. done
  1210.  
  1211.  
  1212. trap '' 1 2 15
  1213. cat > confcache <<\EOF
  1214. # This file is a shell script that caches the results of configure
  1215. # tests run on this system so they can be shared between configure
  1216. # scripts and configure runs.  It is not useful on other systems.
  1217. # If it contains results you don't want to keep, you may remove or edit it.
  1218. #
  1219. # By default, configure uses ./config.cache as the cache file,
  1220. # creating it if it does not exist already.  You can give configure
  1221. # the --cache-file=FILE option to use a different cache file; that is
  1222. # what configure does when it calls configure scripts in
  1223. # subdirectories, so they share the cache.
  1224. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1225. # config.status only pays attention to the cache file if you give it the
  1226. # --recheck option to rerun configure.
  1227. #
  1228. EOF
  1229. # Ultrix sh set writes to stderr and can't be redirected directly,
  1230. # and sets the high bit in the cache file unless we assign to the vars.
  1231. (set) 2>&1 |
  1232.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1233.   >> confcache
  1234. if cmp -s $cache_file confcache; then
  1235.   :
  1236. else
  1237.   if test -w $cache_file; then
  1238.     echo "updating cache $cache_file"
  1239.     cat confcache > $cache_file
  1240.   else
  1241.     echo "not updating unwritable cache $cache_file"
  1242.   fi
  1243. fi
  1244. rm -f confcache
  1245.  
  1246. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1247.  
  1248. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1249. # Let make expand exec_prefix.
  1250. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1251.  
  1252. # Any assignment to VPATH causes Sun make to only execute
  1253. # the first set of double-colon rules, so remove it if not needed.
  1254. # If there is a colon in the path, we need to keep it.
  1255. if test "x$srcdir" = x.; then
  1256.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1257. fi
  1258.  
  1259. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1260.  
  1261. # Transform confdefs.h into DEFS.
  1262. # Protect against shell expansion while executing Makefile rules.
  1263. # Protect against Makefile macro expansion.
  1264. cat > conftest.defs <<\EOF
  1265. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1266. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1267. s%\[%\\&%g
  1268. s%\]%\\&%g
  1269. s%\$%$$%g
  1270. EOF
  1271. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1272. rm -f conftest.defs
  1273.  
  1274.  
  1275. # Without the "./", some shells look in PATH for config.status.
  1276. : ${CONFIG_STATUS=./config.status}
  1277.  
  1278. echo creating $CONFIG_STATUS
  1279. rm -f $CONFIG_STATUS
  1280. cat > $CONFIG_STATUS <<EOF
  1281. #! /bin/sh
  1282. # Generated automatically by configure.
  1283. # Run this file to recreate the current configuration.
  1284. # This directory was configured as follows,
  1285. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1286. #
  1287. # $0 $ac_configure_args
  1288. #
  1289. # Compiler output produced by configure, useful for debugging
  1290. # configure, is in ./config.log if it exists.
  1291.  
  1292. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1293. for ac_option
  1294. do
  1295.   case "\$ac_option" in
  1296.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1297.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1298.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1299.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1300.     echo "$CONFIG_STATUS generated by autoconf version 2.3"
  1301.     exit 0 ;;
  1302.   -help | --help | --hel | --he | --h)
  1303.     echo "\$ac_cs_usage"; exit 0 ;;
  1304.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1305.   esac
  1306. done
  1307.  
  1308. ac_given_srcdir=$srcdir
  1309. ac_given_INSTALL="$INSTALL"
  1310.  
  1311. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1312.  
  1313. # Protect against being on the right side of a sed subst in config.status. 
  1314. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1315.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1316. $ac_vpsub
  1317. $extrasub
  1318. s%@CFLAGS@%$CFLAGS%g
  1319. s%@CPPFLAGS@%$CPPFLAGS%g
  1320. s%@CXXFLAGS@%$CXXFLAGS%g
  1321. s%@DEFS@%$DEFS%g
  1322. s%@LDFLAGS@%$LDFLAGS%g
  1323. s%@LIBS@%$LIBS%g
  1324. s%@exec_prefix@%$exec_prefix%g
  1325. s%@prefix@%$prefix%g
  1326. s%@program_transform_name@%$program_transform_name%g
  1327. s%@CC@%$CC%g
  1328. s%@CPP@%$CPP%g
  1329. s%@RANLIB@%$RANLIB%g
  1330. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1331. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1332.  
  1333. CEOF
  1334. EOF
  1335. cat >> $CONFIG_STATUS <<EOF
  1336.  
  1337. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1338. EOF
  1339. cat >> $CONFIG_STATUS <<\EOF
  1340. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1341.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1342.   case "$ac_file" in
  1343.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1344.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1345.   *) ac_file_in="${ac_file}.in" ;;
  1346.   esac
  1347.  
  1348.   # Adjust relative srcdir, etc. for subdirectories.
  1349.  
  1350.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1351.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1352.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1353.     # The file is in a subdirectory.
  1354.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1355.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1356.     # A "../" for each directory in $ac_dir_suffix.
  1357.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1358.   else
  1359.     ac_dir_suffix= ac_dots=
  1360.   fi
  1361.  
  1362.   case "$ac_given_srcdir" in
  1363.   .)  srcdir=.
  1364.       if test -z "$ac_dots"; then top_srcdir=.
  1365.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1366.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1367.   *) # Relative path.
  1368.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1369.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1370.   esac
  1371.  
  1372.   case "$ac_given_INSTALL" in
  1373.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1374.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1375.   esac
  1376.   echo creating "$ac_file"
  1377.   rm -f "$ac_file"
  1378.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1379.   case "$ac_file" in
  1380.   *Makefile*) ac_comsub="1i\\
  1381. # $configure_input" ;;
  1382.   *) ac_comsub= ;;
  1383.   esac
  1384.   sed -e "$ac_comsub
  1385. s%@configure_input@%$configure_input%g
  1386. s%@srcdir@%$srcdir%g
  1387. s%@top_srcdir@%$top_srcdir%g
  1388. s%@INSTALL@%$INSTALL%g
  1389. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1390. fi; done
  1391. rm -f conftest.subs
  1392.  
  1393.  
  1394.  
  1395. exit 0
  1396. EOF
  1397. chmod +x $CONFIG_STATUS
  1398. rm -fr confdefs* $ac_clean_files
  1399. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1400.  
  1401.